import Vue from 'vue'
import Vuex from 'vuex'

import food from './modules/food.js'
import shop from './modules/shop.js'
import user from './modules/user.js'
import map from './modules/map.js'

Vue.use(Vuex)

export default new Vuex.Store({
	strict: true,
	namespaced: true,
	modules: {
		food: {
			namespaced: true,
			...food
		},
		shop: {
			namespaced: true,
			...shop
		},
		user: {
			namespaced: true,
			...user
		},
		map: {
			namespaced: true,
			...map
		},
	}
})
